import request from "@/utils/request";

// 根据字典类型查询字典数据信息
export function autoComplete(queryStr, type, checkStatus) {
  const data = {
    queryStr: queryStr,
    type: type,
    checkStatus: checkStatus,
  };
  return request({
    url: "/system/pub/autoComplete",
    method: "post",
    data,
  });
}

export function queryWarehouseList(intype) {
  return request({
    url: "/system/pub/queryWarehouseList",
    method: "get",
    params: { intype },
  });
}

// 评论
export function addEvaluateApi(data) {
  return request({
    url: "/system/evaluate/add",
    method: "post",
    data,
  });
}

// 评论列表
export function getEvaluateListApi(data) {
  return request({
    url: "/system/evaluate/selectEvaluateList",
    method: "post",
    data,
  });
}

// 新增表头接口
export function addTableHeaderApi(data) {
  return request({
    url: "/system/titleUser/add",
    method: "post",
    data,
  });
}

// 获取表头接口
export function getTableHeaderApi(data) {
  return request({
    url: "/system/titleUser/findTitleByUserId",
    method: "post",
    data,
  });
}

// 获取省市区列表
export function getProvincesList() {
  return request({
    url: "/system/area/getAreaList",
    method: "get",
    params:{pid:1},
  });
}